package com.loto.insurance.oem.web.enumeration;

public enum OrderStatusEnum {
  CANCELED("取消", 0, "取消订单"), UNPAY("等待支付", 1, "订单创建成功，等待支付"), PAID("支付成功", 2, "订单支付成功"), INSURED_SUC(
	  "投保成功", 3, "投保成功"), INSURED_FAILS("投保失败", 4,"投保失敗");

  private String name;
  private int index;
  private String desc;

  private OrderStatusEnum(String name, int index, String desc) {
	this.name = name;
	this.index = index;
	this.desc = desc;
  }

  public String getName() {
	return name;
  }

  public void setName(String name) {
	this.name = name;
  }

  public int getIndex() {
	return index;
  }

  public void setIndex(int index) {
	this.index = index;
  }

  @Override
  public String toString() {
	return this.name;
  }

  public String getDesc() {
	return desc;
  }

  public void setDesc(String desc) {
	this.desc = desc;
  }
}
